<template>
  <div>
    首页
    <el-button type="info" @click="handleLogout">退出</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      name: ''
    }
  },
  methods: {
    handleLogout() {
      sessionStorage.removeItem('token')
      this.$router.push('/login')
    }
  }
}
</script>

<style lang="">
</style>
